package com.service.impl;

import com.domain.User;
import com.mapper.UserMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserMapper {

    @Resource
    private UserMapper userMapper;

    public User login(User user) {
        return userMapper.login(user);
    }

    @Transactional
    public void updatepwd(User user) {
        userMapper.updatepwd(user);
    }
}
